/**
 * Ceicei.com Inc.
 * Copyright (c) 2004-2012 All Rights Reserved.
 */
package com.ceicei.util;

/**
 * Ceicei中用到的常量
 *
 * @author 李威-liwei2672@gmail.com
 * @version $Id: CeiceiConstants.java, v 0.1 2012-4-25 上午08:34:12 李威 Exp $
 */
public class CeiceiConstants {

    //沙箱环境调用地址 
    //    protected static String url       = "http://gw.api.tbsandbox.com/router/rest";
    //正式环境需要设置为:
    public static String       url                  = "http://gw.api.taobao.com/router/rest";

    public static String       appkey               = "12193538";
    public static String       appSecret            = "a9ff220980f7f2a5539ab24f90057ed4";

    //京东价格图片存储路径
    public static final String FILE_ROOT            = "/root/liwei/jingdong/images";

    //public static final String FILE_ROOT = "E:/binaryresources";

    //允许失败的次数
    public static int          ERROR_NUM            = 10;

    //商品不存在的错误代码
    public static String       ERROR_CODE_15        = "15";
    //调用次数超过规定
    public static String       ERROR_CODE_7         = "7";
    //该商品已被删除
    public static String       ERROR_CODE_530       = "530";

    //ceicei_items_price_log表price_type字段的类型
    //促销价
    public static String       price_type_promotion = "promotion";
    //正常价
    public static String       price_type_normal    = "normal";

    public static String       source_jingdong      = "jingdong";
    public static String       source_taobao        = "taobao";
    public static String       source_tianmao       = "tianmao";

    //默认线程数量
    public static String       DEFAULT_THREAD_COUNT = "3";

    //短信发送状态
    public static int          SMSED_NO             = 0;
    public static int          SMSED_OK             = 1;
    public static int          SMSED_NO_NEED        = 2;
    public static int          SMSED_EXCEPTION      = 3;

    //邮件发送状态
    public static int          MAILED_NO            = 0;
    public static int          MAILED_OK            = 1;
    public static int          MAILED_NO_NEED       = 2;
    public static int          MAILED_EXCEPTION     = 3;

}
